#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	double p, x;
	scanf("%lf", &p);
	x = 1 / (2 * p - 1);
	printf("%.2lf", x);
}